﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using WebInstagram.DAL;

namespace WebInstagram.Models
{
    public class Like : BaseEntity
    {
        public string   User    { get; set; } //author name
        public int      PhotoID { get; set; }

        [NotMapped]
        [ForeignKey("PhotoID")]
        public Photo    Photo   { get; set; }
    }
}